#ifndef __INSIDE_FLASH_H
#define __INSIDE_FLASH_H

#include "ch32f10x.h"

#define FLASH_PAGE_SIZE                    0x400U

FLASH_Status InsideFlash_ErasePage(uint32_t page_addr, uint32_t num);
FLASH_Status InsideFlash_Write_Word(uint32_t addr, uint32_t * buf,uint16_t word_size);
void InsideFlash_Read_Word(uint32_t addr, uint32_t * buf, uint16_t word_size);

#endif